<?php

class Site_Models_Site extends Fengqiaoju_Db_Table {

	public function __construct() {

		parent::__construct ();
		$this->_name = $this->_prefix . "site";
		$this->_primary = "site_id";
	}

	/**
	 * 获取小站列表
	 */
	public function getSiteList($where , $order = '' , $count = '' , $offset = '') {

		$where = $this->arrayToString ( $where );
		return $this->fetchAll ( $where, $order, $count, $offset );
	}

	/**
	 * 获取小站信息
	 */
	public function getSiteInfo($where , $separators = 'OR') {

		$where = $this->arrayToString ( $where, $separators );
		return $this->fetchRow ( $where );
	}
}